home *** CD-ROM | disk | FTP | other *** search
/ MacAddict 108 / MacAddict108.iso / Software / Internet & Communication / WordPress 1.5.1.dmg / wordpress / wp-content / themes / default / sidebar.php < prev    next >
Encoding:
PHP Script  |  2005-04-22  |  2.9 KB  |  73 lines

  1.     <div id="sidebar">
  2.         <ul>
  3.             
  4.             <li>
  5.                 <?php include (TEMPLATEPATH . '/searchform.php'); ?>
  6.             </li>
  7.  
  8.             <!-- Author information is disabled per default. Uncomment and fill in your details if you want to use it.
  9.             <li><h2>Author</h2>
  10.             <p>A little something about you, the author. Nothing lengthy, just an overview.</p>
  11.             </li>
  12.             -->
  13.  
  14.             <li>
  15.             <?php /* If this is a 404 page */ if (is_404()) { ?>
  16.             <?php /* If this is a category archive */ } elseif (is_category()) { ?>
  17.             <p>You are currently browsing the archives for the <?php single_cat_title(''); ?> category.</p>
  18.             
  19.             <?php /* If this is a yearly archive */ } elseif (is_day()) { ?>
  20.             <p>You are currently browsing the <a href="<?php echo get_settings('siteurl'); ?>"><?php echo bloginfo('name'); ?></a> weblog archives
  21.             for the day <?php the_time('l, F jS, Y'); ?>.</p>
  22.             
  23.             <?php /* If this is a monthly archive */ } elseif (is_month()) { ?>
  24.             <p>You are currently browsing the <a href="<?php echo get_settings('siteurl'); ?>"><?php echo bloginfo('name'); ?></a> weblog archives
  25.             for <?php the_time('F, Y'); ?>.</p>
  26.  
  27.       <?php /* If this is a yearly archive */ } elseif (is_year()) { ?>
  28.             <p>You are currently browsing the <a href="<?php echo get_settings('siteurl'); ?>"><?php echo bloginfo('name'); ?></a> weblog archives
  29.             for the year <?php the_time('Y'); ?>.</p>
  30.             
  31.          <?php /* If this is a monthly archive */ } elseif (is_search()) { ?>
  32.             <p>You have searched the <a href="<?php echo get_settings('siteurl'); ?>"><?php echo bloginfo('name'); ?></a> weblog archives
  33.             for <strong>'<?php echo wp_specialchars($s); ?>'</strong>. If you are unable to find anything in these search results, you can try one of these links.</p>
  34.  
  35.             <?php /* If this is a monthly archive */ } elseif (isset($_GET['paged']) && !empty($_GET['paged'])) { ?>
  36.             <p>You are currently browsing the <a href="<?php echo get_settings('siteurl'); ?>"><?php echo bloginfo('name'); ?></a> weblog archives.</p>
  37.  
  38.             <?php } ?>
  39.             </li>
  40.  
  41.             <?php wp_list_pages('title_li=<h2>Pages</h2>' ); ?>
  42.  
  43.             <li><h2>Archives</h2>
  44.                 <ul>
  45.                 <?php wp_get_archives('type=monthly'); ?>
  46.                 </ul>
  47.             </li>
  48.  
  49.             <li><h2>Categories</h2>
  50.                 <ul>
  51.                 <?php wp_list_cats('sort_column=name&optioncount=1&hierarchical=0'); ?>
  52.                 </ul>
  53.             </li>
  54.  
  55.             <?php /* If this is the frontpage */ if ( is_home() || is_page() ) { ?>                
  56.                 <?php get_links_list(); ?>
  57.                 
  58.                 <li><h2>Meta</h2>
  59.                 <ul>
  60.                     <?php wp_register(); ?>
  61.                     <li><?php wp_loginout(); ?></li>
  62.                     <li><a href="http://validator.w3.org/check/referer" title="This page validates as XHTML 1.0 Transitional">Valid <abbr title="eXtensible HyperText Markup Language">XHTML</abbr></a></li>
  63.                     <li><a href="http://gmpg.org/xfn/"><abbr title="XHTML Friends Network">XFN</abbr></a></li>
  64.                     <li><a href="http://wordpress.org/" title="Powered by WordPress, state-of-the-art semantic personal publishing platform.">WordPress</a></li>
  65.                     <?php wp_meta(); ?>
  66.                 </ul>
  67.                 </li>
  68.             <?php } ?>
  69.             
  70.         </ul>
  71.     </div>
  72.  
  73.